package com.sunchis.demo.util.jgroup;

import org.jgroups.Address;
import org.jgroups.Message;
import org.jgroups.ReceiverAdapter;
import org.jgroups.View;

public class ReceiverMessage extends ReceiverAdapter {
	public void receive(Message message) {
		System.out.println(message.getSrc() + ": " + message.getObject());
	}
	
	public void viewAccepted(View new_view) {
		System.out.println("viewAccepted: " + new_view);
	}
	
	public void suspect(Address suspected_mbr) {
		System.out.println("suspect: " + suspected_mbr);
	}
}
